package hoowin.basic.action;

import hoowin.basic.model.User;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class DoLogout extends ActionSupport {
	private User user;
	private String message;

	public String execute(){
		user.destroy();
		setMessage(getText("message.1000"));
		return SUCCESS;
	}
	
	public void setUser(User user) {
		this.user = user;
	}

	public User getUser() {
		return user;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getMessage() {
		return message;
	}
	
}
